import permission from './modules/permission'
import throttle from './modules/throttle'
import debounce from './modules/debounce'

const directivesList = {
    permission,
    throttle,
    debounce,
}

const directives = {
    install: function (app) {
        Object.keys(directivesList).forEach((key) => {
            app.directive(key, directivesList[key])
        })
    },
}

export default directives
